import { Routes, Route, HashRouter } from "react-router-dom";

const Login = lazy(() => import("@/pages/Login"));
const Layout = lazy(() => import("@/layout"));
const Home = lazy(() => import("@/pages/Home"));

export default function Router() {
  return (
    <HashRouter>
      <Routes>
        <Route path="/login" element={<Login />} />
        <Route path="/" element={<Layout />}>
          <Route index element={<Home />} />
        </Route>
      </Routes>
    </HashRouter>
  );
}
